package com.education.online.service.impl;


import com.education.common.utils.Convert;
import com.education.online.mapper.OTestQuestionsMapper;
import com.education.online.pojo.OTestQuestions;
import com.education.online.service.OTestQuestionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 职业技能测试试题表 服务层实现
 *
 * @author d
 * @date 2020-06-04 15:17:49
 */
@Service
public class OTestQuestionsServiceImpl implements OTestQuestionsService {

    @Autowired
    private OTestQuestionsMapper oTestQuestionsMapper;

    @Override
    public List<OTestQuestions> selectOTestQuestionsByParperId(Integer parperId) {
        return oTestQuestionsMapper.selectOTestQuestionsByParperId(parperId);
    }

    //查询职业技能测试试题表信息
    @Override
    public OTestQuestions selectOTestQuestionsById(Integer id) {
        return oTestQuestionsMapper.selectOTestQuestionsById(id);
    }

    // 查询职业技能测试试题表列表
    @Override
    public List<OTestQuestions> selectOTestQuestionsList(OTestQuestions oTestQuestions) {
        return oTestQuestionsMapper.selectOTestQuestionsList(oTestQuestions);
    }

    // 新增职业技能测试试题表
    @Override
    public int insertOTestQuestions(OTestQuestions oTestQuestions) {
        return oTestQuestionsMapper.insertOTestQuestions(oTestQuestions);
    }

    //修改职业技能测试试题表
    @Override
    public int updateOTestQuestions(OTestQuestions oTestQuestions) {
        return oTestQuestionsMapper.updateOTestQuestions(oTestQuestions);
    }

    //删除职业技能测试试题表对象
    @Override
    public int deleteOTestQuestionsByIds(String ids) {
        return oTestQuestionsMapper.deleteOTestQuestionsByIds(Convert.toStrArray(ids));
    }
}